﻿<%@ Page Language="C#" MasterPageFile="~/Pages/MasterPage.master" AutoEventWireup="true" CodeFile="Upload.aspx.cs" Inherits="Pages_Upload" Title="Untitled Page" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v8.2, Version=8.2.4.0, Culture=neutral, PublicKeyToken=49d90c14d24271b5"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>

<%@ Register Assembly="DevExpress.Web.v8.2, Version=8.2.4.0, Culture=neutral, PublicKeyToken=49d90c14d24271b5"
    Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dxuc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style2
        {
            width: 286px;
        }
        .style3
        {
            width: 213px;
        }
    </style>
    <title>Imagevn upload and printing pro</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="titleClient">
<h1>Upload File</h1>
</div>
<div class="contentClient">
    <div id="MainContent">
        <div style="text-align:center; padding:20px; margin:0px auto; width:600px">
            <table>
            <tr>
                <td class="style2" style="border-right:solid 1px gray">
                    Allowed extensions are: .jpg,.jpeg<br/> if you can't upload, you should rename file
                </td>
                <td class="style3">
            
            
                    &nbsp;&nbsp;&nbsp; Files Upload</td>
            </tr>
            <tr>
            <td class="style2"  style="border-right:solid 1px gray">
                <telerik:RadUpload ID="RadUpload1" 
                                runat="server" 
                                InitialFileInputsCount="3" 
                                MaxFileInputsCount="5" 
                                AllowedFileExtensions=".jpg,.jpeg" Width="300px">
                </telerik:RadUpload>
            </td>
            <td class="style3">
            
                   &nbsp;&nbsp;&nbsp;  <asp:ListBox ID="ListBox2" runat="server" Height="109px" Width="187px">
                    </asp:ListBox>
            
                </td>
            </tr>
            <tr>
            <td class="style2" style="border-right:solid 1px gray; text-align:left">
                <asp:Button ID="Button1" runat="server" Text="Submit" onclick="Button1_Click"  
                    style="MARGIN-TOP: 6px" Width="70px" Height="26px"/>
                <asp:CustomValidator
ID="Customvalidator1" runat="server"
Display="Dynamic" ClientValidationFunction="validateRadUpload1">
                    <span style="FONT-SIZE: 11px;">Invalid extensions.</span>
             </asp:CustomValidator>
             <script type="text/javascript">
                function validateRadUpload1(source, arguments)
                {
                    arguments.IsValid = getRadUpload('<%= RadUpload1.ClientID %>').validateExtensions();
                }
            </script>
                </td>
                <td class="style3"></td>
            </tr>
       </table>
        </div>   
    </div>
</div>
</asp:Content>

